package com.ssm.service;

import com.ssm.domain.Permission;
import com.ssm.domain.Role;

import java.util.List;

public interface IPermissionService {

    List<Permission> findPermissionByRoleId(String roleId) throws Exception;

    List<Permission> findAll();

    Permission findById(String permissionId);

    List<Role> findOtherRoleById(String permissionId);

    void save(String permissionId, String[] roleIds);
}
